package com.haifeng.questionbankcrud.dao;

import com.haifeng.questionbankcrud.pojo.SingleChoice;

import java.util.List;

public interface SingleChoiceDao {
    /**
     * 通过id查询单选题
     *
     * @param Id
     * @return SingleChoice
     */
    public List<SingleChoice> selectChoiceByPoint(SingleChoice sc);

    /**
     * 查询所有单选题
     *
     * @return SingleChoice
     */
    public List<SingleChoice> selectAllChoice();

    /**
     * 插入单选题
     *
     * @param sc
     * @return
     */
    public int insertSingleChoice(SingleChoice sc);

    /**
     * 通过id删除单选题
     *
     * @param Id
     * @return
     */
    public int deleteSingleChoiceById(SingleChoice sc);

    /**
     * 更改单选题
     *
     * @param sc
     * @return
     */
    public int updateSingleChoiceById(SingleChoice sc);

}
